package map;

public class Surplus {
    private boolean[] range = {true,true,true,true};
    private int snum = 4;
    private int pos = 0;
    public int getPos() {
        return pos;
    }
    public void setPos(int pos) {
        this.pos = pos;
    }
    public int getSnum() {
        return snum;
    }
    public void setSnum(int snum) {
        this.snum = snum;
    }
    public void setFalse(int i){
        if(range[i]==true){
            range[i] = false;
            snum--;
            if(i>=pos)
                while(range[pos]==false&&pos<3)
                    pos++;
        }
    }
    public void setTrue(int i){
        if(range[i]==false){
            range[i] = true;
            snum++;
            if(i<pos)
                pos=i;
        }
    }
}
